package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author huangxin
 * @description
 * @date 2020/12/2
 */
@Mapper
public interface SupplierDao {
    List<Supplier> queryAllSuppliersByCondition(@Param("supplierName") String supplierName);

    void saveSupplier(@Param("supplier") Supplier supplier);

    void updateSupplierById(@Param("supplier") Supplier supplier);

    void deleteSuppliersBatch(@Param("idList") List<String> idList);

    List<Map<String, Object>> getAllSuppliers();
}
